<template>
  <div class="footer">
    <div class="footer-box">
      <div class="input">
        <van-field
          v-model="text"
          center
          clearable
          input-align="center"
          placeholder="写评论"
        >
          <template #button>
            <van-button v-model="show" size="small" native-type="button" color="rgb(7,193,96)"
              >发送</van-button
            >
          </template>
        </van-field>
      </div>
      <van-icon name="comment-o" />
      <van-icon name="star" />
      <van-icon name="good-job" />
      <van-icon name="share" />
    </div>
  </div>
</template>

<script>
import { Field } from "vant";
export default {
  components: {
    [Field.name]: Field,
  },
  data() {
    return {
      text: "",
      show: false,
    };
  },
};
</script>

<style lang="scss" scoped>
.footer {
  width: 100%;
  position: fixed;
  bottom: 0;
}
.footer-box {
  background-color: #fff;
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 5px 10px;

  .input {
    padding: 5px 0;
    width: 70%;
 
    text-align: center;
    .van-cell {
  
      border: 1px solid #ccc;
      border-radius: 30px;
      padding: 0 ;
   
    }
  }
}
</style>